package com.zmn.oms.common.constant;

/**
 * 类描述: 新增工单改派相关日志参数
 *
 * @author: HuangChao
 * @since: 2022/05/16 11:47
 */
public class OrderWorkRedistributeLogConsts {
    public final static int ORDER_LOG_TYPE_REDISTRIBUTE = 1000; // 改派操作
    public final static int ORDER_REDISTRIBUTE_LOG_TYPE_ADD_APPLY = 1001; // 申请改派
    public final static int ORDER_REDISTRIBUTE_LOG_TYPE_START_AUDIT = 1002; // 改派审核 - 发起
    public final static int ORDER_REDISTRIBUTE_LOG_TYPE_AUDIT = 1003; // 改派审核
    public final static int ORDER_REDISTRIBUTE_LOG_TYPE_HELP_TAKE = 1004; // 求助领单
    public final static int ORDER_REDISTRIBUTE_LOG_TYPE_REDISTRIBUTE = 1005; // 指定改派
    public final static int ORDER_REDISTRIBUTE_LOG_TYPE_REDISTRIBUTE_SYSTEM = 1006; // 系统改派
    public final static int ORDER_REDISTRIBUTE_LOG_TYPE_CANCEL = 1007; // 撤销
    public final static int ORDER_REDISTRIBUTE_LOG_TYPE_ADD_EXCEPTION = 1008; // 录入异常
    public final static int ORDER_REDISTRIBUTE_LOG_TYPE_REDISTRIBUTE_REJECT = 1009; // 改派驳回
    public final static int ORDER_REDISTRIBUTE_LOG_TYPE_ADD_NOTE = 1010; // 录入备注

    /**
     * 查询工单改派志类型名称
     *
     * @param type 改派申请日志类型
     * @return 改派申请日志类型名称
     */
    public static String getLogTypeNameByType(int type) {
        switch (type) {
            case ORDER_REDISTRIBUTE_LOG_TYPE_ADD_APPLY:
                return "申请改派";
            case ORDER_REDISTRIBUTE_LOG_TYPE_START_AUDIT:
                return "改派审核-发起";
            case ORDER_REDISTRIBUTE_LOG_TYPE_AUDIT:
                return "改派审核";
            case ORDER_REDISTRIBUTE_LOG_TYPE_HELP_TAKE:
                return "求助领单";
            case ORDER_REDISTRIBUTE_LOG_TYPE_REDISTRIBUTE:
                return "指定改派";
            case ORDER_REDISTRIBUTE_LOG_TYPE_REDISTRIBUTE_SYSTEM:
                return "系统改派";
            case ORDER_REDISTRIBUTE_LOG_TYPE_CANCEL:
                return "撤销";
            case ORDER_REDISTRIBUTE_LOG_TYPE_ADD_EXCEPTION:
                return "录入异常";
            case ORDER_REDISTRIBUTE_LOG_TYPE_REDISTRIBUTE_REJECT:
                return "改派驳回";
            case ORDER_REDISTRIBUTE_LOG_TYPE_ADD_NOTE:
                return "备注";
            default:
                return "未知";
        }
    }
}
